import request from '../utils/request';

// 获取群组的验证设置
export function getVerificationSettings(groupId) {
    return request({
        url: `/api/admin/verification/${groupId}`,
        method: 'get'
    });
}

// 更新群组的验证设置
export function updateVerificationSettings(groupId, settings) {
    return request({
        url: `/api/admin/verification/${groupId}`,
        method: 'post',
        data: settings
    });
}

// 获取验证记录
export function getVerificationLogs(groupId, params) {
    return request({
        url: `/api/admin/verification/logs/${groupId}`,
        method: 'get',
        params
    });
}

// 删除验证记录
export function deleteVerificationLog(logId) {
    return request({
        url: `/api/admin/verification/logs/${logId}`,
        method: 'delete'
    });
} 